import Select from "@/components/ListSelect"

export default {
  install(Vue,options){
    let vueSelect = Vue.extend(Select),
    vm = new vueSelect().$mount(),
    el = vm.$el
    document.body.appendChild(el)

    Vue.prototype.$select=(props)=>{
      props.list.forEach((v,i)=>{
        if(props.value==v)props.index=i
      })
      vm.props=props
      vm.props.show=true
    }
  }
}